. ./path.sh || exit 1;
cd ../
stage=7
stop_stage=7

dir=/home/work_nfs6/xlgeng/new_workspace/wenet_gxl_en_cn/streaming_fbank_exp
output_file=$dir/jit_out_2
mkdir -p $output_file

if [ ${stage} -le 7 ] && [ ${stop_stage} -ge 7 ]; then
  echo "开始推理"
  export GLOG_logtostderr=1
  export GLOG_v=2
  wav_path=data_list/tiny_asru_test.scp
  /home/work_nfs7/xlgeng/workspace/wenet-sanm/runtime/libtorch/build/bin/decoder_main \
      --chunk_size -1 \
      --wav_scp $wav_path \
      --model_path $dir/final_9.zip \
      --unit_path data_list/units_en_cn.txt \
      --result  $output_file/jit_out_text
fi
